xend: Destroy information about the domain in case an error occurs
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 10 Apr 2007 09:28:11 +0000 (10:28 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 10 Apr 2007 09:28:11 +0000 (10:28 +0100)
during resume of a domain.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/xend/XendDomainInfo.py

index 425776ce12ab45ae439bf76a4ddf8c7a148c86d9..9083e90e7779bc9479f7d10c53f97af67746ecbb 100644 (file)
@@ -430,6 +430,7 @@ class XendDomainInfo:
                 self._endRestore()
             except:
                 log.exception('VM resume failed')
+                self.destroy()
                 raise
         else:
             raise XendError('VM already running')